package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 针对用户的数据访问接口
 */
@Repository
public interface UserMapper {
    /**
     * 查询所有用户
     * @return
     */
    @Select("select * from user where username=#{username}and password=#{password}")
    List<User> findAll(@Param("username") String username, @Param("password") String password);
}
